//
//  ShareDanCollectionCell.swift
//  HappyEat
//
//  Created by ctx2016 on 17/1/11.
//  Copyright © 2017年 陌路是我. All rights reserved.
//

import UIKit

class ShareDanCollectionCell: UICollectionViewCell {
    var bgImage:UIImageView = UIImageView.init()
    override init (frame:CGRect){
        super.init(frame: frame)
        self.setUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    override func layoutSubviews() {
        super.layoutSubviews()
        self.bgImage.snp.makeConstraints { (make) in
            make.left.equalTo(0)
            make.right.equalTo(0)
            make.top.equalTo(0)
            make.bottom.equalTo(0)
        }
    }
}
extension ShareDanCollectionCell{
    func setUI(){
      self.contentView.addSubview(bgImage)
        self.bgImage.contentMode = .scaleToFill
        self.bgImage.backgroundColor = .red
    }
}
